package cn.edu.sjtu.se.dslab.util;
/**
 *	系统内部常量类 <BR>
 *	定义系统内部常量
 */
public class Const {
	
	/**
	 * 	action类中返回登陆页面返回值
	 */
	public static final String INDEX = "index";

	/**
	 * 	action类中登陆成功操作返回值
	 */
	public static final String LOGIN = "loginSuccess";
	
	/**
	 * 	action类中登陆失败操作返回值
	 */
	public static final String LOGIN_FAIL = "loginFailure";

	/**
	 * 	action类中注销操作返回值
	 */
	public static final String LOGINOUT = "loginOut";
	
	
	
	/**
	 *  action类中ajax抓取数据操作的返回值
	 */
	public static final String FETCH = "fetch";
	/**
	 *	action类中查询处理的返回值
	 */
	public static final String SELECT = "select";
	
	
	/**
	 * 	action类中添加成功的返回值
	 */
	public static final String ADD_SUCCESS = "add_success";
	
	/**
	 * 	action类中添加修改的返回值
	 */
	public static final String MODIFY_SUCCESS = "modify_success";
	
	/**
	 * 	action类中删除成功的返回值
	 */
	public static final String DELETE_SUCCESS = "delete_success";
	
	/**
	 *	action类中查看成功操作返回值
	 */
	public static final String RETRIEVE_SUCCESS = "retrieve_success";
	/**
	 *	action类中查看成功操作返回值
	 */
	public static final String RETRIEVE_FOLLOW_SUCCESS = "retrieve_follow_success";
	/**
	 *	action类中查看成功操作返回值
	 */
	public static final String RETRIEVE_ENCONOMIC_SUCCESS = "retrieve_enconomic_success";

	/**
	 *	action类中查看成功操作返回值
	 */
	public static final String RETRIEVE_SUCCESS_CON = "retrieve_success_con";
	/**
	 *	action类中查看成功操作返回值
	 */
	public static final String RETRIEVE_SUCCESS_AUD = "retrieve_success_aud";
	
	/**
	 *	action类中查看成功操作返回值
	 */
	public static final String RETRIEVE_SUCCESS_PRICE = "retrieve_success_price";
	/**
	 *	action类中查看成功操作返回值
	 */
	public static final String RETRIEVE_SUCCESS_CONSUME = "retrieve_success_consume";
	/**
	 *	action类中查看成功操作返回值
	 */
	public static final String RETRIEVE_SUCCESS_BEST_PUR = "retrieve_success_best";
	
	/**
	 *	action类中查看失败操作返回值
	 */
	public static final String RETRIEVE_FAIL = "retrieve_fail";
	
	
	/**
	 * 	action类中操作失败的返回值
	 */
	public static final String ERROR = "error";
	
	/**
	 *  action类中修改密码密码不符的返回值
	 */
	public static final String PASSWORD_ERROR = "password_error";

	/**
	 *  action类中修改密码密码匹配的返回值
	 */
	public static final String PASSWORD_MATCH = "password_match";
	
	/**
	 * 	登陆用户信息session名
	 */
	public static final String SESSIONNAME = "user";
	
	/**
	 * 	登陆用户权限session名
	 */
	public static final String MENU = "menu";
	
	/**
	 *	REQUEST
	 */
	public static final String REQUEST = "request";
	
	/**
	 *	PROJECT
	 */
	public static final String PROJECT = "project";
	
	/**
	 *	BEAN
	 */
	public static final String BEAN = "bean";
	
	/**
	 * 	NOTICE
	 */
	public static final String USER = "user";
	/**
	 * 	PATIENT
	 */
	public static final String PATIENT = "patient";
	

	
	
	
	/**
	 * 指示页面为修改功能的常量
	 */
	public static final String MODIFY_OP = "modify";
	
	public static final String MODIFY_VIEW="modify_view";
	public static final String DELETE_VIEW="delete_view";	
	
	/**
	 * 每页最大记录数
	 */
	public static final int PAGESIZE = 10;
	
	
	
	/**
	 * 新增用户密码
	 */
	public static final String  PASSWORD = "111111";

	
	/**
	 * 密码检查：匹配
	 */
	public static final Integer PASSWORD_STATE_MATCH = 0;
	/**
	 * 密码检查：失配
	 */
	public static final Integer PASSWORD_STATE_MISS = 1;
	/**
	 * 出错
	 */
	public static final Integer ERROR_CODE = -1;
	
}
